<?php 
/**
 * Headers do site
 * Nesse arquivo são inseridas as metatags que ficarão dentro da tag head
 * ATENÇÃO, não coloquem tags script e nem link rel="stylesheet", use a função wp_register_style/wp_register_script no arquivo /dev/config.php
 * 
 * @package WordPress
 * @subpackage wp-dev
 */
?>
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
	<title><?php wp_title();?></title>
	<link rel="alternate" type="application/rss+xml" title="RSS <?php bloginfo("name")?>" href="<?php bloginfo('rss2_url'); ?>" />
	<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
	
	<?php if(WPDEV_IS_LOCAL === true): ?>
		<script type="text/javascript">
			var _gaq = {
				push: function (p_arr) {
					var arr = p_arr;
					var func = arr[0];
					arr.shift();
					arr = arr.join('\',\'');
					if (window['console']) {
						console.info('_gaq.push([\'' + func + '\',\'' + arr + '\']);');
		}
				}
			};
			var _gaq = _gaq || [];
			_gaq.push(['_setAccount', '<?php echo GOOGLE_ANALYTICS;?>']);
			_gaq.push(['_trackPageview', '']);
		</script>
	<?php else: ?>
		<script type="text/javascript">
			var _gaq = _gaq || [];
			_gaq.push(['_setAccount', '<?php echo GOOGLE_ANALYTICS;?>']);
			_gaq.push(['_trackPageview', '']);
		</script>
	<?php endif; if(WPDEV_IS_LOCAL === false): ?>
		<script type="text/javascript">
			(function () {
				var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
				ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
				var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
			})();
		</script>
	<?php endif; ?>
	
	
<?php wp_head(); ?>
